var menu2 = 
{
    "type": "flex",
    "id": "u:6d35a1d507ba",
    "className": "p-1 bg-white r",
    "items": [
        {
            "type": "tpl",
            "tpl": "<p>${listData2.title}</P>",
            "inline": true,
            "wrapperComponent": "",
            "id": "u:380fbb7819c7",
            "style": {
                "fontWeight": "bold",
                "color": "#000000",
                "fontSize": "24px"
            }
        },
        {
            "type": "flex",
            "id": "u:6d35a1d507ba",
            "items": [
                {
                    "type": "container",
                    "body": [
                        {
                            "type": "each",
                            "source": '${listData2.list}',
                            "id": "u:2cbe6ffb16c6",
                            "items": [
                                {
                                    // ARRAYFINDINDEX(checkboxes, item => item.value === value)
                                    "type": "link",
                                    "href": "${link}",
                                    "visibleOn": "${index < listData2.list.length - 1 && ARRAYFINDINDEX(checkboxes2, item => item.value === value) > -1}",
                                    "body": [
                                        {
                                            "type": "image",
                                            "src": "${img}",
                                            "width": 80,
                                            "height": 80,
                                            "className": "no-border",
                                            "innerClassName": "no-border",
                                            "imageClassName": "no-border",
                                            "thumbClassName": "no-border"
                                        },
                                        {
                                            "type": "tpl",
                                            "tpl": "${txt}",
                                            "inline": true,
                                            "wrapperComponent": "",
                                            "style": {
                                                "color": "#58666e"
                                            }
                                        }
                                    ],
                                    "size": "xs",
                                    "style": {
                                        "position": "static",
                                        "display": "flex",
                                        "flex": "0 0 130px",
                                        "flexBasis": "130px",
                                        "overflowX": "auto",
                                        "flexDirection": "column",
                                        "flexWrap": "nowrap",
                                        "justifyContent": "space-between",
                                        "alignItems": "center",
                                        "height": "130px",
                                        "overflowY": "auto"
                                    },
                                    "wrapperBody": false,
                                    "isFixedHeight": true,
                                    "isFixedWidth": false,
                                    "id": "u:ae86eeb98836",
                                    "className": "p-xs"
                                },
                                {
                                    "type": "action",
                                    "visibleOn": "${index === listData2.list.length - 1}",
                                    "body": [
                                        {
                                            "type": "image",
                                            "id": "u:41b22c72203f",
                                            "src": "${img}",
                                            "width": 80,
                                            "height": 80
                                        },
                                        {
                                            "type": "tpl",
                                            "tpl": "${txt}",
                                            "inline": true,
                                            "wrapperComponent": "",
                                            "id": "u:380fbb7819c7",
                                            "style": {
                                                "color": "#58666e"
                                            }
                                        }
                                    ],
                                    "size": "xs",
                                    "style": {
                                        "position": "static",
                                        "display": "flex",
                                        "flex": "0 0 130px",
                                        "flexBasis": "130px",
                                        "overflowX": "auto",
                                        "flexDirection": "column",
                                        "flexWrap": "nowrap",
                                        "justifyContent": "space-between",
                                        "alignItems": "center",
                                        "height": "130px",
                                        "overflowY": "auto"
                                    },
                                    "wrapperBody": false,
                                    "isFixedHeight": true,
                                    "isFixedWidth": false,
                                    "id": "u:ae86eeb98836",
                                    "className": "p-xs",
                                    "onEvent": {
                                        "click": {
                                            "actions": [
                                                {
                                                    "actionType": "dialog",
                                                    "dialog": {
                                                        "title": "模态弹窗",
                                                        "body": [
                                                            {
                                                                "type": "tpl",
                                                                "tpl": "<p>选择菜单</p>",
                                                                "inline": false
                                                            },
                                                            {
                                                                "type": "checkboxes",
                                                                "name": "checkboxes",
                                                                "multiple": true,
                                                                "joinValues": false,
                                                                "source": "${listData2.checkList}"
                                                            }
                                                        ],
                                                        "onEvent": {
                                                            "confirm": {
                                                                "actions": [
                                                                    {
                                                                        "args": {
                                                                            "checkboxes2": "${checkboxes}"
                                                                        },
                                                                        "actionType": "reload",
                                                                        "componentId": "u:2cbe6ffb16c5"
                                                                    }
                                                                ]
                                                            },
                                                            "cancel": {
                                                                "actions": [
                                                                    {
                                                                        "actionType": "toast",
                                                                        "args": {
                                                                            "msg": "cancel"
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    }
                                                }
                                            ]
                                        }
                                    }
                                }
                            ],
                            "style": {
                                "width": "100%",
                                "position": "static",
                                "display": "flex",
                                "flexWrap": "wrap"
                            },
                            "direction": "column",
                            "justify": "space-between",
                            "alignItems": "stretch",
                            "isFixedHeight": false,
                            "isFixedWidth": false
                        }
                    ],
                    "style": {
                        "width": "100%"
                    }
                }
            ],
            "style": {
                "width": "100%"
            }
        }
    ],	
    "style": {
        "position": "static",
        "padding": "0 20px",
        "marginBottm": "20px"
    },
    "direction": "column",
    "justify": "flex-start",
    "alignItems": "flex-start",
    "isFixedHeight": false,
    "isFixedWidth": false
}